<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能学习平台 - 嵌入式与万物互联专家</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap">
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #4895ef;
            --primary-dark: #3a0ca3;
            --secondary: #7209b7;
            --accent: #f72585;
            --success: #4cc9f0;
            --warning: #f9c74f;
            --danger: #f94144;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 头部样式 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 0 0 20px 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
            /* position: sticky;
            top: 0;
            z-index: 1000; */
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }

        .logo-icon {
            color: var(--primary);
            font-size: 2rem;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-link {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .header-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 14px rgba(67, 97, 238, 0.4);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        /* Hero Banner */
        .hero {
            display: flex;
            align-items: center;
            gap: 40px;
            padding: 60px 0;
            margin: 40px 0;
        }

        .hero-content {
            flex: 1;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(247, 37, 133, 0.2);
            color: var(--accent);
            padding: 8px 16px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .hero-title span {
            color: var(--primary);
            position: relative;
        }

        .hero-title span::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 10px;
            background: rgba(67, 97, 238, 0.2);
            z-index: -1;
        }

        .hero-desc {
            font-size: 1.1rem;
            color: var(--gray);
            margin-bottom: 30px;
            max-width: 500px;
        }

        .hero-actions {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: var(--card-shadow);
            transform: perspective(800px) rotateY(-10deg);
            transition: var(--transition);
        }

        .hero-img:hover {
            transform: perspective(800px) rotateY(0);
        }

        /* 功能卡片 */
        .section {
            margin-bottom: 80px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .section-subtitle {
            font-size: 1.1rem;
            color: var(--gray);
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .feature-card {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 2rem;
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }

        .feature-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .feature-card p {
            color: var(--gray);
            margin-bottom: 20px;
        }

        .feature-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: var(--transition);
        }

        .feature-link:hover {
            gap: 10px;
            color: var(--primary-dark);
        }

        /* 热门课程 */
        .courses-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .course-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .course-image {
            height: 180px;
            overflow: hidden;
            position: relative;
        }

        .course-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .course-card:hover .course-image img {
            transform: scale(1.05);
        }

        .course-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .course-content {
            padding: 25px;
        }

        .course-title {
            font-size: 1.2rem;
            margin-bottom: 12px;
            color: var(--dark);
        }

        .course-desc {
            color: var(--gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .course-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .course-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .course-price {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.2rem;
        }

        /* 统计数据 */
        .stats-section {
            background: linear-gradient(120deg, var(--primary-dark), var(--primary));
            color: white;
            padding: 80px 0;
            border-radius: 20px;
            margin-bottom: 80px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .stat-desc {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        /* 学习路径 */
        .learning-path {
            display: flex;
            gap: 40px;
            align-items: center;
            margin-bottom: 80px;
        }

        .path-content {
            flex: 1;
        }

        .path-image {
            flex: 1;
        }

        .path-image img {
            max-width: 100%;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
        }

        .path-steps {
            margin-top: 30px;
        }

        .path-step {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            flex-shrink: 0;
        }

        .step-content h4 {
            margin-bottom: 8px;
            color: var(--dark);
        }

        .step-content p {
            color: var(--gray);
        }

        /* 底部区域 */
        .footer {
            background: var(--dark);
            color: white;
            padding: 60px 20px 30px;
            border-radius: 20px 20px 0 0;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-col h4 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-col h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-links a:hover {
            color: white;
            gap: 12px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .hero {
                flex-direction: column;
                text-align: center;
            }

            .hero-desc {
                margin: 0 auto 30px;
            }

            .hero-actions {
                justify-content: center;
            }

            .learning-path {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 20px;
                padding: 15px;
            }

            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }

            .hero-title {
                font-size: 2.2rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .stat-number {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 576px) {
            .hero-actions {
                flex-direction: column;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .footer-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 头部 -->
        <div class="header">
            <a href="#" class="logo">
                <i class="fas fa-brain logo-icon"></i>
                <span>智学平台</span>
            </a>

            <div class="nav-links">
                <a href="#" class="nav-link">首页</a>
                <a href="#" class="nav-link">课程</a>
                <a href="#" class="nav-link">题库</a>
                <a href="#" class="nav-link">考试</a>
                <a href="#" class="nav-link">学习路径</a>
                <a href="#" class="nav-link">关于我们</a>
            </div>

            <div class="header-buttons">
                <button class="btn btn-outline">
                    <i class="fas fa-user"></i>
                    <span>登录</span>
                </button>
                <button class="btn btn-primary">
                    <i class="fas fa-user-plus"></i>
                    <span>注册</span>
                </button>
            </div>
        </div>

        <!-- Hero Banner -->
        <div class="hero">
            <div class="hero-content">
                <div class="hero-badge">
                    <i class="fas fa-bolt"></i>
                    <span>嵌入式 & 物联网专家培养</span>
                </div>
                <h1 class="hero-title">掌握<span>嵌入式技术</span>，引领万物互联时代</h1>
                <p class="hero-desc">大牛手把手教你实操企业真实项目，无缝对接企业真实工作流程，从零基础到项目实战的全栈学习路径</p>
                <div class="hero-actions">
                    <button class="btn btn-primary">
                        <i class="fas fa-play-circle"></i>
                        <span>开始学习</span>
                    </button>
                    <button class="btn btn-outline">
                        <i class="fas fa-book-open"></i>
                        <span>查看课程</span>
                    </button>
                </div>
            </div>
            <div class="hero-image">
                <img src="https://images.unsplash.com/photo-1531297484001-80022131f5a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80"
                    alt="嵌入式与物联网学习" class="hero-img">
            </div>
        </div>

        <!-- 功能特性 -->
        <div class="section">
            <div class="section-header">
                <h2 class="section-title">为什么选择智学平台</h2>
                <p class="section-subtitle">我们提供全方位的学习解决方案，帮助您快速掌握嵌入式与物联网开发技能</p>
            </div>

            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-laptop-code"></i>
                    </div>
                    <h3>实战项目驱动</h3>
                    <p>通过真实企业项目案例学习，掌握从需求分析到产品上线的全流程开发经验</p>
                    <a href="#" class="feature-link">
                        <span>了解更多</span>
                        <i class="fas fa-arrow-right"></i>
                    </a>
                </div>

                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-robot"></i>
                    </div>
                    <h3>AI智能辅导</h3>
                    <p>智能推荐学习内容，个性化学习路径，实时解答疑问，提高学习效率</p>
                    <a href="#" class="feature-link">
                        <span>了解更多</span>
                        <i class="fas fa-arrow-right"></i>
                    </a>
                </div>

                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-chalkboard-teacher"></i>
                    </div>
                    <h3>专家导师团队</h3>
                    <p>由行业资深工程师和技术专家组成导师团队，提供一对一技术指导</p>
                    <a href="#" class="feature-link">
                        <span>了解更多</span>
                        <i class="fas fa-arrow-right"></i>
                    </a>
                </div>

                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-briefcase"></i>
                    </div>
                    <h3>就业保障</h3>
                    <p>与上百家企业合作，完成学习路径后推荐就业，助力职业发展</p>
                    <a href="#" class="feature-link">
                        <span>了解更多</span>
                        <i class="fas fa-arrow-right"></i>
                    </a>
                </div>
            </div>
        </div>

        <!-- 热门课程 -->
        <div class="section">
            <div class="section-header">
                <h2 class="section-title">热门课程</h2>
                <p class="section-subtitle">精选最受学员欢迎的嵌入式与物联网开发课程</p>
            </div>

            <div class="courses-container">
                <div class="course-card">
                    <div class="course-image">
                        <img src="https://images.unsplash.com/photo-1555949963-aa79dcee981c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80"
                            alt="嵌入式开发基础">
                        <div class="course-badge">热门</div>
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">嵌入式开发从入门到实战</h3>
                        <p class="course-desc">掌握C语言、数据结构、单片机原理等嵌入式开发核心知识</p>
                        <div class="course-meta">
                            <span><i class="fas fa-clock"></i> 48课时</span>
                            <span><i class="fas fa-user-graduate"></i> 1245人学习</span>
                        </div>
                        <div class="course-footer">
                            <div class="course-price">¥399</div>
                            <button class="btn btn-outline">立即学习</button>
                        </div>
                    </div>
                </div>

                <div class="course-card">
                    <div class="course-image">
                        <img src="https://images.unsplash.com/photo-1535223289827-42f1e9919769?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80"
                            alt="物联网应用开发">
                        <div class="course-badge">新课</div>
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">物联网应用开发实战</h3>
                        <p class="course-desc">学习传感器技术、通信协议、云平台对接等物联网开发技能</p>
                        <div class="course-meta">
                            <span><i class="fas fa-clock"></i> 56课时</span>
                            <span><i class="fas fa-user-graduate"></i> 892人学习</span>
                        </div>
                        <div class="course-footer">
                            <div class="course-price">¥499</div>
                            <button class="btn btn-outline">立即学习</button>
                        </div>
                    </div>
                </div>

                <div class="course-card">
                    <div class="course-image">
                        <img src="https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80"
                            alt="ARM体系结构">
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">ARM体系结构与编程</h3>
                        <p class="course-desc">深入理解ARM架构，掌握汇编语言和底层驱动开发技术</p>
                        <div class="course-meta">
                            <span><i class="fas fa-clock"></i> 36课时</span>
                            <span><i class="fas fa-user-graduate"></i> 756人学习</span>
                        </div>
                        <div class="course-footer">
                            <div class="course-price">¥449</div>
                            <button class="btn btn-outline">立即学习</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 统计数据 -->
        <div class="stats-section">
            <div class="stats-grid">
                <div class="stat-item">
                    <div class="stat-number">
                        <i class="fas fa-user-graduate"></i>
                        <span>10,000+</span>
                    </div>
                    <div class="stat-desc">注册学员</div>
                </div>
                <div class="stat-item">
                    <div class="stat-number">
                        <i class="fas fa-book"></i>
                        <span>200+</span>
                    </div>
                    <div class="stat-desc">精品课程</div>
                </div>
                <div class="stat-item">
                    <div class="stat-number">
                        <i class="fas fa-chalkboard-teacher"></i>
                        <span>50+</span>
                    </div>
                    <div class="stat-desc">专业讲师</div>
                </div>
                <div class="stat-item">
                    <div class="stat-number">
                        <i class="fas fa-building"></i>
                        <span>100+</span>
                    </div>
                    <div class="stat-desc">合作企业</div>
                </div>
            </div>
        </div>

        <!-- 学习路径 -->
        <div class="section">
            <div class="section-header">
                <h2 class="section-title">系统化学习路径</h2>
                <p class="section-subtitle">从零基础到项目实战，循序渐进掌握嵌入式开发技能</p>
            </div>

            <div class="learning-path">
                <div class="path-content">
                    <h3>四步成为嵌入式开发工程师</h3>
                    <p>我们设计了科学的学习路径，帮助您系统化掌握嵌入式开发所需的所有技能</p>

                    <div class="path-steps">
                        <div class="path-step">
                            <div class="step-number">1</div>
                            <div class="step-content">
                                <h4>基础理论</h4>
                                <p>C语言编程、数据结构、计算机组成原理</p>
                            </div>
                        </div>
                        <div class="path-step">
                            <div class="step-number">2</div>
                            <div class="step-content">
                                <h4>单片机开发</h4>
                                <p>51单片机、STM32、外设驱动开发</p>
                            </div>
                        </div>
                        <div class="path-step">
                            <div class="step-number">3</div>
                            <div class="step-content">
                                <h4>操作系统</h4>
                                <p>FreeRTOS、Linux系统、驱动开发</p>
                            </div>
                        </div>
                        <div class="path-step">
                            <div class="step-number">4</div>
                            <div class="step-content">
                                <h4>项目实战</h4>
                                <p>智能家居、工业控制、物联网应用开发</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="path-image">
                    <img src="https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80"
                        alt="学习路径">
                </div>
            </div>
        </div>

        <!-- 底部 -->
        <div class="footer">
            <div class="footer-grid">
                <div class="footer-col">
                    <h4>关于我们</h4>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-angle-right"></i> 平台介绍</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 师资力量</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 联系我们</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 加入我们</a></li>
                    </ul>
                </div>
                <div class="footer-col">
                    <h4>学习资源</h4>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-angle-right"></i> 全部课程</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 免费教程</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 技术文章</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 开发工具</a></li>
                    </ul>
                </div>
                <div class="footer-col">
                    <h4>学习服务</h4>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-angle-right"></i> 学习指南</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 常见问题</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 学习小组</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> 技术答疑</a></li>
                    </ul>
                </div>
                <div class="footer-col">
                    <h4>联系我们</h4>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-map-marker-alt"></i> 北京市海淀区中关村大街</a></li>
                        <li><a href="#"><i class="fas fa-phone"></i> 400-123-4567</a></li>
                        <li><a href="#"><i class="fas fa-envelope"></i> contact@edu.com</a></li>
                    </ul>
                </div>
            </div>
            <div class="footer-bottom">
                <p>© 2023 智学平台 - 嵌入式与物联网教育专家。保留所有权利。</p>
            </div>
        </div>
    </div>

    <script>
        // 简单的交互效果
        document.querySelectorAll('.btn').forEach(button => {
            button.addEventListener('click', function () {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });

        // 数字动画效果
        function animateValue(element, start, end, duration) {
            let startTimestamp = null;
            const step = (timestamp) => {
                if (!startTimestamp) startTimestamp = timestamp;
                const progress = Math.min((timestamp - startTimestamp) / duration, 1);
                element.innerHTML = Math.floor(progress * (end - start) + start);
                if (progress < 1) {
                    window.requestAnimationFrame(step);
                }
            };
            window.requestAnimationFrame(step);
        }

        // 当统计区域进入视口时触发数字动画
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    document.querySelectorAll('.stat-number span').forEach(el => {
                        const value = parseInt(el.textContent.replace('+', ''));
                        animateValue(el, 0, value, 2000);
                    });
                    observer.disconnect();
                }
            });
        }, { threshold: 0.5 });

        observer.observe(document.querySelector('.stats-section'));
    </script>
</body>

</html>